//
//  NSDateComponents+SMCategory.m
//  DiDi
//
//  Created by huangtie on 2017/3/20.
//  Copyright © 2017年 Sinmore. All rights reserved.
//

#import "NSDateComponents+SMCategory.h"
#import <objc/runtime.h>

static NSString *strKey = @"strKey";
@implementation NSDateComponents (SMCategory)

-(void)setSm_date:(NSString *)str
{
    objc_setAssociatedObject(self, &strKey, str, OBJC_ASSOCIATION_COPY);
}

-(NSString *)sm_date
{
    return objc_getAssociatedObject(self, &strKey);
}

@end
